package com.joplus.housekeeper.ui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * Created by ccm on 2016/6/27 20:02
 * 用于scrollview 嵌套
 */
public class MoreGridview extends GridView {
    public MoreGridview(Context context) {
        super(context);
    }

    public MoreGridview(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MoreGridview(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }


}
